#!/bin/sh
set -e

PKGNAME="$1"
MODE="$2" # PRE-INSTALL, POST-INSTALL, DEINSTALL, POST-DEINSTALL

case "$MODE" in
POST-INSTALL)
	echo "initializing database driver..."
	/usr/lib/susan/scripts/susan-config initialize_database_driver
	;;
DEINSTALL)
	;;
PRE-INSTALL|POST-DEINSTALL)
	true
	;;
esac
